<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
<title>主页</title>
    <script src="/drclothes/Public/js/jquery.min.js"></script>    
    <script src="/drclothes/Public/js/bootstrap.min.js"></script>  
    <link href="/drclothes/Public/css/bootstrap.min.css" rel="stylesheet">
    <link href="/drclothes/Public/css/animate.min.css" rel="stylesheet">
    <link href="/drclothes/Public/css/style.css" rel="stylesheet">
</head>
<body>
<embed src="/drclothes/Public/video/bg.mp3" loop="true" width="0" height="0">
<div class="container" id="part1">
    <div class="row clearfix">
        <div class="col-md-12 column padding1 margin15" align="center" id="span1" style="margin-top:330px;">
            <h1 id="time" style="font-size:80px;font-family:'Yejing';"></h1>
            <img src="/drclothes/Public/image/logo.png" class="img-responsive margin12">
            <div style="display:block;" id="next1" onmouseover="this.style.cursor='pointer'">
                <h4>CLICK TO ENTER</h4>
                <h4 class="glyphicon glyphicon-chevron-down"></h4>
            </div>
        </div>
    </div>
</div>
<div id="part2" style="display:none;">   
<div class="container-fluid background9">
<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column">
            <?php
 if(!isset($_SESSION['username'])){ echo'<h6><a href="/drclothes/index.php"  style="color:#999;"><font class="glyphicon glyphicon-home">首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <a href="/drclothes/index.php/home/form/login"  style="color:#999;"><font>登录</font></a>&nbsp;|&nbsp;
                        <a href="/drclothes/index.php/home/form/register"  style="color:#999;"><font>注册</font></a></h6>'; } else{ $username= $_SESSION['username']; $userrank= $_SESSION['userrank']; echo "<h6><font style='float:right;'>".$userrank."&nbsp;".$username."&nbsp;&nbsp;
                        <a href='/drclothes/index.php/home/form/logout' style='color:#999;'>退出</font>
                        <a href='/drclothes/index.php' style='color:#999;'><font class='glyphicon glyphicon-home'>首页</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        </h6>"; } ?>
        </div>
    </div>
</div>
</div>
<div class="container-fluid">
    <div class="container">
		<div class="row clearfix">
            <div class="col-xs-12 column" align="center">
                <img src="/drclothes/Public/image/logo.png" class="img-responsive margin15" />
            </div>
            <div class="col-xs-offset-4 col-xs-4 column" align="center" style="padding-top:13px;">
                <form role="search" class="form-horizontal" action="/drclothes/index.php/home/form/searchresult" method="get" style="margin-bottom:0px;">
                    <div class="input-group">
                        <input id="query" name="name" type="text" placeholder="搜索 商品..." class="form-control" required />
                        <span class="input-group-btn">
                            <button class="btn button2" type="submit" style="top:0px;">搜索</button>
                        </span>
                    </div>
                </form>
            </div>
		</div>
	</div>
</div>
<div class="container">
    <div class="row clearfix">
        <div class="col-xs-12 column padding3 padding1" align="center">
            <a href="/drclothes/index.php">首页</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=">全部</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=新">新款</a>
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=促销">促销</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=男">男士</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/searchresult?name=女">女士</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/cart">购物车</a>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="/drclothes/index.php/home/form/orderlist">订单</a>
        </div>       
    </div>
</div>

<div class="container">
    <div class="row clearfix">
        <div class="col-md-12 column padding1">
            <video width="100%" heigh="auto" autoplay="autoplay" loop="loop">
                <source src="/drclothes/Public/video/video5.mp4" type="video/mp4">
            </video>
        </div>
    </div>
</div>
<div class="container">
	<div class="row clearfix">
	    <h5 style="margin-top:30px;">2017年最新款</h5>
	    <div class="col-xs-6 column padding11" id="box">
			<?php if(is_array($focus)): $i = 0; $__LIST__ = $focus;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$focusitem): $mod = ($i % 2 );++$i;?><div class="pic" style="padding-right:10px;">
					<a href="/drclothes/index.php/home/index/drclothes?id=<?php echo ($focusitem["id"]); ?>" target="_blank"><img alt="<?php echo ($focusitem["name"]); ?>" src="/drclothes/Public/<?php echo ($focusitem["img"]); ?>" width="100%"/></a>
				</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
		<div class="col-xs-6 column padding11" id="box2">
			<?php if(is_array($focus6)): $i = 0; $__LIST__ = $focus6;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$focusitem6): $mod = ($i % 2 );++$i;?><div class="pic2" style="padding-left:10px;">
					<a href="/drclothes/index.php/home/index/drclothes?id=<?php echo ($focusitem6["id"]); ?>" target="_blank"><img alt="<?php echo ($focusitem6["name"]); ?>" src="/drclothes/Public/<?php echo ($focusitem6["img"]); ?>" width="100%"/></a>
				</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>
	<div class="row clearfix">
	    <div class="col-xs-12 column padding1">
		<?php if(is_array($focus4)): $i = 0; $__LIST__ = $focus4;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$focusitem2): $mod = ($i % 2 );++$i;?><div class="col-xs-3 column padding1">
			<a href="/drclothes/index.php/home/index/drclothes?id=<?php echo ($focusitem2["id"]); ?>" target="_blank"><img alt="<?php echo ($focusitem2["name"]); ?>" src="/drclothes/Public/<?php echo ($focusitem2["img"]); ?>" width="100%"/></a>
		</div><?php endforeach; endif; else: echo "" ;endif; ?>
		</div>
	</div>
</div>
<div class="container span5" style="margin-top:60px;">
	<div class="col-xs-offset-2 col-xs-8">
		<legend class="text-center col-xs-12" style="font-size:14px;">最新动态</legend>
		<?php if(is_array($newslist)): $i = 0; $__LIST__ = $newslist;if( count($__LIST__)==0 ) : echo "$newsempty" ;else: foreach($__LIST__ as $key=>$newslistitem): $mod = ($i % 2 );++$i;?><div class="col-xs-12">
				<p class="pull-right"><?php echo ($newslistitem["addtime"]); ?></p>
				<a href="/drclothes/index.php/home/index/news?id=<?php echo ($newslistitem["id"]); ?>" style="color:#333;"><?php echo ($newslistitem["title"]); ?></a>
			</div><?php endforeach; endif; else: echo "$newsempty" ;endif; ?>
	</div>
</div>
<div class="container-fluid">
<div class="container">
	<div class="row clearfix" align="center">
			<div class="col-xs-12 column color1 padding3">
		       	<img alt="" src="/drclothes/Public/image/logo.png" class="img-responsive" />
		    </div>
			<h5 style="margin-top:140px;">Drclothes 辽ICP备123456789号</h5>
		</div>
	</div>
</div>	
</div>
</div> 
</body>
</html>
<script language="javascript" type="text/javascript">
        $(function(){
                $("#next1").click(function(){
                    $("#span1").animate({
                          marginTop:'-1000px',
                    },"slow");
                    // $('#part1').css('display','none');
                    $('#part2').css('display','block');
                }
                );
            });
</script>
<script>     
document.getElementById('time').innerHTML=new Date().getHours()+":"+new Date().getMinutes()+":"+new Date().getSeconds()+":"+new Date().getMilliseconds(); 
setInterval("document.getElementById('time').innerHTML=new Date().getHours()+':'+new Date().getMinutes()+':'+new Date().getSeconds()+':'+new Date().getMilliseconds();",300);  
</script> 
<script>     
$(window).ready(function(){
  $("#box .pic").eq(0).show();
  var i=0;
  function fad(){
    var m = i%4;
    var n = (i+1)%4;
    $("#box .pic").eq(m).fadeOut(1000);
    $("#box .pic").eq(n).fadeIn(1000);
    i++;

  };
  int = setInterval(fad,6000);
});
$(window).ready(function(){
  $("#box2 .pic2").eq(0).show();
  var i=0;
  function fad(){
    var m = i%4;
    var n = (i+1)%4;
    $("#box2 .pic2").eq(m).fadeOut(1000);
    $("#box2 .pic2").eq(n).fadeIn(1000);
    i++;

  };
  int = setInterval(fad,5000);
});
</script>